// 类 {Class}

export {} // 确保跟其他示例没有成员冲突

class Person {
    name: string
    age: number

    constructor (name: string, age: number){
        this.name = name
        this.age = age
    }

    sayHi(msg: string): void {
        console.log(`i am ${this.name}, ${this.age}`);
    }
}

